/*
* FaceCat图形通讯框架
* 著作权编号:2015SR229355+2020SR0266727
* 上海卷卷猫信息技术有限公司
*/

#ifndef __CDRAW_H__
#define __CDRAW_H__


#define USERCOLOR   (Long)-200000000100
/// <summary>
/// 用户自定义色
/// </summary>
#define USERCOLOR100   (Long)-200000000100
#define USERCOLOR101   (Long)-200000000101
#define USERCOLOR102   (Long)-200000000102
#define USERCOLOR103   (Long)-200000000103
#define USERCOLOR104   (Long)-200000000104
#define USERCOLOR105   (Long)-200000000105
#define USERCOLOR106   (Long)-200000000106
#define USERCOLOR107   (Long)-200000000107
#define USERCOLOR108   (Long)-200000000108
#define USERCOLOR109   (Long)-200000000109
#define USERCOLOR110   (Long)-200000000110
#define USERCOLOR111   (Long)-200000000111
#define USERCOLOR112   (Long)-200000000112
#define USERCOLOR113   (Long)-200000000113
#define USERCOLOR114   (Long)-200000000114
#define USERCOLOR115   (Long)-200000000115
#define USERCOLOR116   (Long)-200000000116
#define USERCOLOR117   (Long)-200000000117
#define USERCOLOR118   (Long)-200000000118
#define USERCOLOR119   (Long)-200000000119
#define USERCOLOR120   (Long)-200000000120
#define USERCOLOR121   (Long)-200000000121
#define USERCOLOR122   (Long)-200000000122
#define USERCOLOR123   (Long)-200000000123
#define USERCOLOR124   (Long)-200000000124
#define USERCOLOR125   (Long)-200000000125
#define USERCOLOR126   (Long)-200000000126
#define USERCOLOR127   (Long)-200000000127
#define USERCOLOR128   (Long)-200000000128
#define USERCOLOR129   (Long)-200000000129
#define USERCOLOR130   (Long)-200000000130
#define USERCOLOR131   (Long)-200000000131
#define USERCOLOR132   (Long)-200000000132
#define USERCOLOR133   (Long)-200000000133
#define USERCOLOR134   (Long)-200000000134
#define USERCOLOR135   (Long)-200000000135
#define USERCOLOR136   (Long)-200000000136
#define USERCOLOR137   (Long)-200000000137
#define USERCOLOR138   (Long)-200000000138
#define USERCOLOR139   (Long)-200000000139
#define USERCOLOR140   (Long)-200000000140
#define USERCOLOR141   (Long)-200000000141
#define USERCOLOR142   (Long)-200000000142
#define USERCOLOR143   (Long)-200000000143
#define USERCOLOR144   (Long)-200000000144
#define USERCOLOR145   (Long)-200000000145
#define USERCOLOR146   (Long)-200000000146
#define USERCOLOR147   (Long)-200000000147
#define USERCOLOR148   (Long)-200000000148
#define USERCOLOR149   (Long)-200000000149
#define USERCOLOR150   (Long)-200000000150
#define USERCOLOR151   (Long)-200000000151
#define USERCOLOR152   (Long)-200000000152
#define USERCOLOR153   (Long)-200000000153
#define USERCOLOR154   (Long)-200000000154
#define USERCOLOR155   (Long)-200000000155
#define USERCOLOR156   (Long)-200000000156
#define USERCOLOR157   (Long)-200000000157
#define USERCOLOR158   (Long)-200000000158
#define USERCOLOR159   (Long)-200000000159
#define USERCOLOR160   (Long)-200000000160
#define USERCOLOR161   (Long)-200000000161
#define USERCOLOR162   (Long)-200000000162
#define USERCOLOR163   (Long)-200000000163
#define USERCOLOR164   (Long)-200000000164
#define USERCOLOR165   (Long)-200000000165
#define USERCOLOR166   (Long)-200000000166
#define USERCOLOR167   (Long)-200000000167
#define USERCOLOR168   (Long)-200000000168
#define USERCOLOR169   (Long)-200000000169
#define USERCOLOR170   (Long)-200000000170
#define USERCOLOR171   (Long)-200000000171
#define USERCOLOR172   (Long)-200000000172
#define USERCOLOR173   (Long)-200000000173
#define USERCOLOR174   (Long)-200000000174
#define USERCOLOR175   (Long)-200000000175
#define USERCOLOR176   (Long)-200000000176
#define USERCOLOR177   (Long)-200000000177
#define USERCOLOR178   (Long)-200000000178
#define USERCOLOR179   (Long)-200000000179
#define USERCOLOR180   (Long)-200000000180
#define USERCOLOR181   (Long)-200000000181
#define USERCOLOR182   (Long)-200000000182
#define USERCOLOR183   (Long)-200000000183
#define USERCOLOR184   (Long)-200000000184
#define USERCOLOR185   (Long)-200000000185
#define USERCOLOR186   (Long)-200000000186
#define USERCOLOR187   (Long)-200000000187
#define USERCOLOR188   (Long)-200000000188
#define USERCOLOR189   (Long)-200000000189
#define USERCOLOR190   (Long)-200000000190
#define USERCOLOR191   (Long)-200000000191
#define USERCOLOR192   (Long)-200000000192
#define USERCOLOR193   (Long)-200000000193
#define USERCOLOR194   (Long)-200000000194
#define USERCOLOR195   (Long)-200000000195
#define USERCOLOR196   (Long)-200000000196
#define USERCOLOR197   (Long)-200000000197
#define USERCOLOR198   (Long)-200000000198
#define USERCOLOR199   (Long)-200000000199
#define USERCOLOR200   (Long)-200000000200
#define USERCOLOR201   (Long)-200000000201
#define USERCOLOR202   (Long)-200000000202
#define USERCOLOR203   (Long)-200000000203
#define USERCOLOR204   (Long)-200000000204
#define USERCOLOR205   (Long)-200000000205
#define USERCOLOR206   (Long)-200000000206
#define USERCOLOR207   (Long)-200000000207
#define USERCOLOR208   (Long)-200000000208
#define USERCOLOR209   (Long)-200000000209
#define USERCOLOR210   (Long)-200000000210
#define USERCOLOR211   (Long)-200000000211
#define USERCOLOR212   (Long)-200000000212
#define USERCOLOR213   (Long)-200000000213
#define USERCOLOR214   (Long)-200000000214
#define USERCOLOR215   (Long)-200000000215
#define USERCOLOR216   (Long)-200000000216
#define USERCOLOR217   (Long)-200000000217
#define USERCOLOR218   (Long)-200000000218
#define USERCOLOR219   (Long)-200000000219
#include "stdafx.h"

class MyColor{
public:
    MyColor();
    virtual ~MyColor(){};
    int m_lastStyle;
    HashMap<double, Long> m_userColors;
    static int getStyle();
    static void setStyle(int value);
    virtual void createColors();
    virtual Long getUserColor(Long color);
    static void setSystemFont(String value);
    static String getSystemFont();
};

class FCDraw{
public:
    static FCSize drawText(FCPaint *paint, String text, Long dwPenColor, FCFont *font, int x, int y);
    static int drawUnderLineNum(FCPaint *paint, double value, int digit, FCFont *font, Long fontColor, bool zeroAsEmpty, int x, int y);
    static int drawUnderLineNum2(FCPaint *paint, double value, int digit, FCFont *font, Long fontColor, bool zeroAsEmpty, int x, int y);
    static Long getPriceColor(double price, double comparePrice);
};
#endif
